package com.shisfish.library.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.context.ApplicationContext;

import com.shisfish.library.Inter.IErrorInfoInter;
import com.shisfish.library.Model.ErrorInfo;
import com.shisfish.library.Utils.Global.GetACXmlUtils;

public class ErrorInfoImpl implements IErrorInfoInter {

	private ApplicationContext ac = GetACXmlUtils.getACXml();
	private IErrorInfoInter mapper = (IErrorInfoInter) ac.getBean("errorInfoMapper");
	
	@Override
	public int insertOne(ErrorInfo t) {
		// TODO Auto-generated method stub
		return mapper.insertOne(t);
	}

	@Override
	public int insertAll(List<ErrorInfo> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateOne(ErrorInfo t) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateAll(List<ErrorInfo> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<ErrorInfo> selectById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<ErrorInfo> selectByKey(String key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int countAll() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<ErrorInfo> selectAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int deleteOneById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllById(List<?> ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteOneByKey(String key) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllByKey(List<?> keys) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int countByType(int type) {
		// TODO Auto-generated method stub
		return mapper.countByType(type);
	}

	public List<Map<String, Object>> selectByTypePage(int type, int currentPage,
			int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectByTypePage(type, currentPage, pageSize);
	}

}
